package com.sf.fy.uav.withdrawal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sf.fy.uav.common.request.operate.ScenicSpotReq;
import com.sf.fy.uav.common.response.operational.ScenicSpotRes;
import com.sf.fy.uav.common.utils.RespJsonPageData;
import com.sf.fy.uav.common.utils.Rs;
import com.sf.fy.uav.withdrawal.entity.ScenicSpot;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LTQ
 * @since 2023-12-07
 */
public interface IScenicSpotService extends IService<ScenicSpot> {
    /**
     * 分页查询景区
     *
     * @param scenicSpotReq
     * @return
     */
    RespJsonPageData<ScenicSpotRes> getPageScenicSpot(ScenicSpotReq scenicSpotReq);


    /**
     * 通过id查询
     *
     * @param id
     * @return
     */
    ScenicSpot selectById(String id);

    /**
     * 新增景区
     * @param scenicSpotReq
     * @return
     */
    Rs<Integer> save(ScenicSpotReq scenicSpotReq);

    Rs<Integer> updateById(ScenicSpotReq scenicSpotReq);
}
